package com.pet.pet02.feign;

import com.pet.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "pet03-userservice",contextId = "remoteUserService")
public interface RemoteUserService {
    @PostMapping("/user/login/{username}")
    User getUserByName(@PathVariable("username") String username);
}
